package com.example.educationai.repository;

import com.example.educationai.entity.ClassEntity;
import com.example.educationai.entity.SimpleUser;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface ClassRepository extends JpaRepository<ClassEntity, Long> {
    List<ClassEntity> findByTeacher(SimpleUser teacher);
    List<ClassEntity> findByTeacherId(Long teacherId);
    boolean existsByClassNameAndGrade(String className, String grade);
} 